Matthias Clasen [Tue, 8 Sep 2020 23:47:54 +0000 (23:47 +0000)]
Merge branch 'shadertoy-demo' into 'master'
gtk-demo: Add shadertoy demo
See merge request GNOME/gtk!2540
Emmanuele Bassi [Tue, 8 Sep 2020 17:54:25 +0000 (17:54 +0000)]
Merge branch 'sorter-constructor-fix-warning' into 'master'
Fix warning in listview_settings demo
See merge request GNOME/gtk!2544
Andreas Persson [Tue, 8 Sep 2020 16:48:54 +0000 (18:48 +0200)]
Fix warning in listview_settings demo
Fix a warning introduced when sorter constructors were changed to return
exact types.
Ask Hjorth Larsen [Tue, 8 Sep 2020 14:23:16 +0000 (16:23 +0200)]
Updated Danish translation of gtk-properties
Ask Hjorth Larsen [Tue, 8 Sep 2020 14:23:05 +0000 (16:23 +0200)]
Updated Danish translation of gtk
Marek Černocký [Tue, 8 Sep 2020 13:33:40 +0000 (15:33 +0200)]
Updated Czech translation
Matthias Clasen [Tue, 8 Sep 2020 12:58:27 +0000 (12:58 +0000)]
Merge branch 'filter-constructors' into 'master'
Filter constructors
See merge request GNOME/gtk!2360
Danial Behzadi [Tue, 8 Sep 2020 12:50:36 +0000 (12:50 +0000)]
Update Persian translation
Alexandre Franke [Tue, 8 Sep 2020 09:15:19 +0000 (09:15 +0000)]
Update French translation
Alexander Larsson [Mon, 7 Sep 2020 13:32:22 +0000 (15:32 +0200)]
gtk-demo: Add shadertoy demo
This adds a small demo of using OpenGL shaders, it renders a quad
over the entire widget with a custom fragment shader. The coordinates
and the uniform names are compatible with the ones on shadertoy.com
(although some features, like texture inputs are missing currently).
The default shader in the demo is
https://www.shadertoy.com/view/wsjBD3 which is CC0, so it is
redistributable by Gtk+ (most other shaders are CC-BY-NC-SA which
isn't obviously compatible). I also added a set of buttons loading
a few other CC0 shaders I found.
Matthias Clasen [Mon, 7 Sep 2020 21:27:09 +0000 (21:27 +0000)]
Merge branch 'gl-linear' into 'master'
Gl: use linear interpolation
See merge request GNOME/gtk!2523
Matthias Clasen [Mon, 7 Sep 2020 18:20:38 +0000 (14:20 -0400)]
Add some tests for the axis-aligned check
Matthias Clasen [Mon, 7 Sep 2020 17:03:27 +0000 (17:03 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
See merge request GNOME/gtk!2541
Matthias Clasen [Mon, 7 Sep 2020 15:17:24 +0000 (11:17 -0400)]
gsk: Complain if we fail to realize a renderer
The only likely place where this is going to happen
is if a renderer was explicitly requested with the
GSK_RENDERER environment variable, and in that case,
it is misleading to silently use a different renderer.
Matthias Clasen [Mon, 7 Sep 2020 15:16:52 +0000 (11:16 -0400)]
gsk: Mention gl as valid value for GSK_RENDERER
Matthias Clasen [Mon, 7 Sep 2020 00:46:42 +0000 (20:46 -0400)]
text: Set the hotspot for the drag icon
This makes the drag icon align properly with the
dragged text at the beginning of the drag.
Marek Černocký [Mon, 7 Sep 2020 12:34:07 +0000 (14:34 +0200)]
Updated Czech translation
Gil Forcada [Mon, 7 Sep 2020 10:31:39 +0000 (10:31 +0000)]
Update Catalan translation
Daniel Mustieles [Mon, 7 Sep 2020 06:59:50 +0000 (08:59 +0200)]
Updated Spanish translation
Fran Dieguez [Sun, 6 Sep 2020 23:22:39 +0000 (23:22 +0000)]
Update Galician translation
Fran Dieguez [Sun, 6 Sep 2020 23:20:08 +0000 (23:20 +0000)]
Update Galician translation
Matthias Clasen [Sun, 6 Sep 2020 21:39:08 +0000 (21:39 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
Closes #3123
See merge request GNOME/gtk!2539
Matthias Clasen [Sun, 6 Sep 2020 21:00:43 +0000 (17:00 -0400)]
aboutdialog: Disable text undo
The text buffers here are not editable, so it
does not make sense to have text undo enabled
for them.
Fixes: #3123
Matthias Clasen [Sun, 6 Sep 2020 20:59:56 +0000 (16:59 -0400)]
text history: Update state when enabled changes
This makes can-undo go FALSE when we disable the
text history, as it should.
Balázs Úr [Sun, 6 Sep 2020 20:31:44 +0000 (20:31 +0000)]
Update Hungarian translation
Matthias Clasen [Sun, 6 Sep 2020 19:38:56 +0000 (19:38 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
See merge request GNOME/gtk!2538
Baurzhan Muftakhidinov [Sun, 6 Sep 2020 17:36:39 +0000 (17:36 +0000)]
Update Kazakh translation
Matthias Clasen [Sun, 6 Sep 2020 16:19:44 +0000 (12:19 -0400)]
text: Stop drag updates when a dnd starts
This prevents the selection from changing underneath
us, messing up move dnd operations.
Matthias Clasen [Sun, 6 Sep 2020 15:53:59 +0000 (15:53 +0000)]
Merge branch 'listwidgets-doc-fix' into 'master'
docs: Update list widgets docs
See merge request GNOME/gtk!2537
Matthias Clasen [Sun, 6 Sep 2020 15:48:10 +0000 (11:48 -0400)]
textview: Fix dnd
When we start a dnd of the selection in the drag-update handler,
set the gesture state to denied. Otherwise, we get more drag-update
signals, and things get really confused, leading to no dnd and
sadness.
Andreas Persson [Sun, 6 Sep 2020 15:19:24 +0000 (17:19 +0200)]
docs: Update list widgets docs
Removed sentence that claimed the view will wrap the model in a
GtkSingleSelection, as it's no longer true. Fixed the code example in
GtkListView for the same reason. Fixed a small typo in GtkDropDown docs.
Matthias Clasen [Sun, 6 Sep 2020 13:25:43 +0000 (13:25 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
See merge request GNOME/gtk!2535
Alexandre Franke [Sun, 6 Sep 2020 12:44:35 +0000 (12:44 +0000)]
Update French translation
Matthias Clasen [Sun, 6 Sep 2020 12:42:27 +0000 (08:42 -0400)]
gtk-demo: Add some comments
Add some comments to the math in the transforms demo.
Asier Sarasua Garmendia [Sun, 6 Sep 2020 09:01:32 +0000 (09:01 +0000)]
Update Basque translation
Kukuh Syafaat [Sun, 6 Sep 2020 05:16:58 +0000 (05:16 +0000)]
Update Indonesian translation
Matthias Clasen [Sun, 6 Sep 2020 02:54:16 +0000 (22:54 -0400)]
gtk-demo: Simplify the constraints demos
Give them all a close button in the header.
Matthias Clasen [Sun, 6 Sep 2020 02:35:30 +0000 (22:35 -0400)]
inspector: Fix teardown of the general tab
We were connecting signal handlers to the display
and seats here, and never cleaning them up, leading
to crashes after the inspector is closed. This is
fairly easy to reproduce under Wayland, where the
scroll device is only created the first time we
create a scroll event.
Matthias Clasen [Mon, 3 Aug 2020 19:54:42 +0000 (15:54 -0400)]
Make sorter constructors return exact types
Make functions like gtk_custom_sorter_new() return
the actual type they construct.
Update all callers.
Matthias Clasen [Mon, 3 Aug 2020 19:04:33 +0000 (15:04 -0400)]
Make filter constructors return exact types
Make functions like gtk_custom_filter_new() return
the actual type they construct.
Update all callers.
Goran Vidović [Sat, 5 Sep 2020 20:45:50 +0000 (20:45 +0000)]
Update Croatian translation
Aurimas Černius [Sat, 5 Sep 2020 16:57:34 +0000 (19:57 +0300)]
Updated Lithuanian translation
Matthias Clasen [Sat, 5 Sep 2020 16:00:33 +0000 (16:00 +0000)]
Merge branch 'revert-
43ca43a22f' into 'master'
Revert "Adwaita: rich-list styling"
See merge request GNOME/gtk!2533
Matthias Clasen [Sat, 5 Sep 2020 14:49:10 +0000 (14:49 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
Closes #3122
See merge request GNOME/gtk!2534
nana-4 [Tue, 1 Sep 2020 13:31:44 +0000 (22:31 +0900)]
Revert "Adwaita: rich-list styling"
This reverts commit
2f0a4c7128ac31541c830b7ed223ce6417964bff.
It seems the commit was accidentally added when
768e24afc1fc5ba1bdf63a3d438f66524b3b2e92 was manually merged and pushed.
Matthias Clasen [Sat, 5 Sep 2020 13:54:18 +0000 (13:54 +0000)]
Merge branch 'typo_correction' into 'master'
Typo correction
Closes #3086 and #3090
See merge request GNOME/gtk!2532
Matthias Clasen [Sat, 5 Sep 2020 13:51:59 +0000 (09:51 -0400)]
css: Use an array when parsing selectors
There's no need for us to have a hard size-limit here;
with GdkArray we don't have to give up on stack-preallocation
either.
Emin Tufan Çetin [Sat, 5 Sep 2020 12:45:24 +0000 (12:45 +0000)]
Update Turkish translation
Matthias Clasen [Sat, 5 Sep 2020 12:38:18 +0000 (08:38 -0400)]
text: Don't replace unselected text with Emoji
We must be careful to not select everything on focus-in
before we have the Emoji inserted. This was accidentally
broken in
d5121af876032af09bd9.
Fixes: #3122
Yuri Chornoivan [Sat, 5 Sep 2020 12:29:46 +0000 (12:29 +0000)]
Update Ukrainian translation
Ahmed Eldemery [Sat, 5 Sep 2020 11:49:01 +0000 (13:49 +0200)]
add a missing comma
Ahmed Eldemery [Sat, 5 Sep 2020 11:46:27 +0000 (13:46 +0200)]
Merge remote-tracking branch 'upstream/master' into master
Piotr Drąg [Sat, 5 Sep 2020 11:27:57 +0000 (13:27 +0200)]
Update Polish translation
Piotr Drąg [Sat, 5 Sep 2020 09:53:39 +0000 (11:53 +0200)]
Update POTFILES.in
Matthias Clasen [Fri, 4 Sep 2020 17:57:23 +0000 (17:57 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
See merge request GNOME/gtk!2531
Matthias Clasen [Fri, 4 Sep 2020 17:40:10 +0000 (13:40 -0400)]
layoutmanager demo: Make icons come out upright
Rearrange the vertices so that the icons show
up in the proper orientation.
Matthias Clasen [Fri, 4 Sep 2020 15:47:33 +0000 (11:47 -0400)]
Beef up transform testcase
Make this show 'paintings in paintings'.
Matthias Clasen [Fri, 4 Sep 2020 15:47:43 +0000 (11:47 -0400)]
modelbutton: Claim the gesture
This aligns the model button behavior with what
GtkButton does.
Matthias Clasen [Wed, 2 Sep 2020 22:05:16 +0000 (18:05 -0400)]
Update gsk tests
Add a clip-coordinates-2d test that is similar
to clip-coordinates-3d, but actually uses a 2D
transform.
Matthias Clasen [Wed, 2 Sep 2020 22:01:06 +0000 (18:01 -0400)]
Check for pixel-alignedness for interpolation
When rendering to an offscreen because of transforms,
check if transforming the bounds of the node results
in a non-axis-aligned quad. If it doesn't, we want
GL_NEAREST interpolation to get sharp edges. Otherwise,
we use GL_LINEAR to get better results for things
that are actually transformed.
Matthias Clasen [Fri, 4 Sep 2020 16:35:59 +0000 (12:35 -0400)]
gl: Reshuffle some code
Just rearrange the cases in this switch, no effective change.
Matthias Clasen [Fri, 4 Sep 2020 16:51:11 +0000 (12:51 -0400)]
Add gsk_matrix_transform_rect
This is a projecting version of the corresponding
graphene api. While we are at it, rewrite
gsk_matrix_transform_bounds() to use
gsk_matrix_transform_rect().
Matej Urbančič [Fri, 4 Sep 2020 15:30:55 +0000 (17:30 +0200)]
Updated Slovenian translation
Matthias Clasen [Fri, 4 Sep 2020 15:30:35 +0000 (15:30 +0000)]
Merge branch 'release-script' into 'master'
Release script
See merge request GNOME/gtk!2530
Benjamin Otte [Fri, 4 Sep 2020 14:40:36 +0000 (14:40 +0000)]
Merge branch 'demo_css_pixbufs_fix' into 'master'
gtk-demo: Fix CSS in pixbufs demo
See merge request GNOME/gtk!2529
Matthias Clasen [Fri, 4 Sep 2020 13:56:10 +0000 (09:56 -0400)]
build: Add a release script
I've goofed up too many times producing the separate
doc tarballs. So lets collect the required steps in a script.
Björn Daase [Fri, 4 Sep 2020 14:14:09 +0000 (16:14 +0200)]
gtk-demo: Fix CSS in pixbufs demo
Matthias Clasen [Fri, 4 Sep 2020 13:52:37 +0000 (09:52 -0400)]
build: Move the gtk-doc dep to the toplevel
We want to include the gtk-doc subproject in release
tarballs, using --include-subprojects, but that only
works if we've actually built the subproject. And
enabling gtk-doc for dist builds is problematic -
it tends to break meson dist.
So declare the gtk-doc dependency independent of
-Dgtk_doc, and use --force-fallback-for for it.
Dušan Kazik [Fri, 4 Sep 2020 12:42:52 +0000 (12:42 +0000)]
Update Slovak translation
Matthias Clasen [Fri, 4 Sep 2020 12:32:40 +0000 (12:32 +0000)]
Merge branch 'fix-gtk-application-menu-example' into 'master'
GtkApplicationWindow: Fix menubar example
See merge request GNOME/gtk!2528
Emmanuele Bassi [Fri, 4 Sep 2020 11:56:03 +0000 (11:56 +0000)]
Merge branch 'ebassi/for-master' into 'master'
Ebassi/for master
Closes #3118
See merge request GNOME/gtk!2527
Emmanuel Gil Peyrot [Fri, 4 Sep 2020 11:49:28 +0000 (13:49 +0200)]
GtkApplicationWindow: Fix menubar example
This example was using invalid attribute syntax.
Emmanuele Bassi [Fri, 4 Sep 2020 11:05:01 +0000 (12:05 +0100)]
Use consistent argument name
Declarations, definitions, and gtk-doc stanzas should use the same name
for arguments. Otherwise both g-ir-scanner and gtk-doc will complain
that they can't find the argument.
Emmanuele Bassi [Fri, 4 Sep 2020 11:02:15 +0000 (12:02 +0100)]
build: Make sysprof truly optional
We are falling back to the sysprof subproject even if sysprof support
has been explicitly disabled.
Fixes: #3118
Emmanuele Bassi [Fri, 4 Sep 2020 10:49:50 +0000 (10:49 +0000)]
Merge branch 'fix-vulkan-dependency-searching' into 'master'
meson: Fix Vulkan dependency checking
Closes #3108
See merge request GNOME/gtk!2526
Chun-wei Fan [Fri, 4 Sep 2020 09:24:57 +0000 (17:24 +0800)]
gdksurface-win32.c: Fix missed include
We need to include gdkdevice-win32.h for gdksurface-win32.c
Nirbheek Chauhan [Fri, 4 Sep 2020 06:02:35 +0000 (11:32 +0530)]
meson: Fix Vulkan dependency checking
The dependency block was completely wrong. It was:
1. Not searching for the lib manually when -Dvulkan=enabled (default).
The else block was only hit when -Dvulkan=auto.
2. Unconditionally searching for the vulkan library in the else block
when -Dvulkan=disabled
The manual searching is also not required because Meson has a custom
'vulkan' dependency class that already supports Windows, and is more
correct than the code here. Specifically, the current code does not
support picking up the Vulkan SDK from a custom path.
Fixes #3108
Jordi Mas [Fri, 4 Sep 2020 04:26:23 +0000 (06:26 +0200)]
Update Catalan translation
Ahmed Eldemery [Thu, 3 Sep 2020 18:24:26 +0000 (20:24 +0200)]
Merge remote-tracking branch 'upstream/master' into master
Matthias Clasen [Thu, 3 Sep 2020 17:47:10 +0000 (13:47 -0400)]
3.99.1
Matthias Clasen [Thu, 3 Sep 2020 18:18:41 +0000 (14:18 -0400)]
gridview: Make constructor arguments nullable
I forgot to adjust the precondition when copying things
around.
Matthias Clasen [Thu, 3 Sep 2020 14:49:31 +0000 (14:49 +0000)]
Merge branch 'layout-manager-transform-demo' into 'master'
Layout manager transform demo
See merge request GNOME/gtk!2519
Matthias Clasen [Thu, 27 Aug 2020 11:16:38 +0000 (07:16 -0400)]
Add another layout manager demo
This demo uses transforms to place icons on a sphere.
Matthias Clasen [Wed, 2 Sep 2020 02:32:02 +0000 (22:32 -0400)]
Cosmetic improvement to the layout manager demo
Give this a better title, since we will have more
than one layout manager demo soon.
Matthias Clasen [Wed, 2 Sep 2020 16:52:35 +0000 (12:52 -0400)]
Add a simple testcase for transforms
This can help in tracking various things down,
from picking to clipping.
Matthias Clasen [Wed, 2 Sep 2020 19:47:40 +0000 (19:47 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
Closes #3109 and #3112
See merge request GNOME/gtk!2522
Matthias Clasen [Wed, 2 Sep 2020 03:23:42 +0000 (23:23 -0400)]
Fix picking
My previous change here was too hasty - this code is not
actually transforming points - it is just a convoluted
way to transform the z axis from child coordinates to
the parent.
Matthias Clasen [Wed, 2 Sep 2020 14:26:13 +0000 (10:26 -0400)]
text widgets: Don't lose focus after Emoji
Make sure to grab focus back when the Emoji chooser
disappears. This prevents focus going nowhere when
the Emoji chooser is canceled.
Fixes: #3112
Matthias Clasen [Wed, 2 Sep 2020 12:04:15 +0000 (08:04 -0400)]
textview: Fix placement of Emoji chooser
If the selection extends beyond the visible range,
place the Emoji chooser over the center of the window.
Fixes: #3109
Matthias Clasen [Tue, 1 Sep 2020 17:15:06 +0000 (13:15 -0400)]
NEWS: Updates
Emin Tufan Çetin [Wed, 2 Sep 2020 18:26:15 +0000 (18:26 +0000)]
Update Turkish translation
Mario Blättermann [Wed, 2 Sep 2020 17:14:28 +0000 (17:14 +0000)]
Update German translation
Carlos Garnacho [Wed, 2 Sep 2020 11:11:54 +0000 (11:11 +0000)]
Merge branch 'gesture-nullable-sequence' into 'master'
Annotate sequence argument of GtkGesture signals as nullable
See merge request GNOME/gtk!2520
Sebastian Dröge [Wed, 2 Sep 2020 10:32:20 +0000 (13:32 +0300)]
Annotate sequence argument of GtkGesture signals as nullable
Matthias Clasen [Tue, 1 Sep 2020 23:06:01 +0000 (19:06 -0400)]
README: Cosmetics
Matthias Clasen [Tue, 1 Sep 2020 22:15:33 +0000 (22:15 +0000)]
Merge branch 'checkbutton-fixes' into 'master'
Checkbutton fixes
See merge request GNOME/gtk!2518
Goran Vidović [Tue, 1 Sep 2020 21:14:00 +0000 (21:14 +0000)]
Update Croatian translation
Matthias Clasen [Tue, 1 Sep 2020 20:31:07 +0000 (16:31 -0400)]
checkbutton: Don't notify write-only properties
Nobody is listening...
Matthias Clasen [Tue, 1 Sep 2020 19:57:14 +0000 (15:57 -0400)]
action helper: Drop G_GNUC_INTERNAL from headers
We haven't needed this for a long time now.
Matthias Clasen [Tue, 1 Sep 2020 19:31:24 +0000 (15:31 -0400)]
Add docs about grouping via action
Mention this in the docs for gtk_check_button_set_group
and gtk_toggle_button_set_group.